package com.zhuss.bean.vo.core.auth;

import java.util.ArrayList;
import java.util.List;

import com.zhuss.bean.unit.core.auth.ResourceBean;
import com.zhuss.common.AbstractVo;

public class AuthResourceVo extends AbstractVo {
	
	private List<ResourceBean> resourceList;
	
	private List<String> urlList = new ArrayList<>();;

	public List<ResourceBean> getResourceList() {
		return resourceList;
	}

	public void setResourceList(List<ResourceBean> resourceList) {
		urlList.clear();
		for (ResourceBean item : resourceList) {
			urlList.add(item.getUrl());
		}
		this.resourceList = resourceList;
	}
	
	public Boolean checkUrl(String url) {
		return urlList.contains(url);
	}

}
